<?php
/**前台公用控制器
 * @Author: 976123967@qq.com
 * @Date:   2014-09-01 23:19:02
 * @Last Modified by:   chen
 * @Last Modified time: 2014-09-07 21:03:53
 */
class CommonControl extends  Control{



	/**
	 * [__init 公用]
	 * @return [type] [description]
	 */
	public function __init()
	{
		// 导航
		$nav = K('Category')->get_son_category(0);
		$this->assign('nav',$nav);
	}


	/**
	 * [code 验证码]
	 * @return [type] [description]
	 */
	public function code()
	{
		$code = new Code();
		$code->show();
	}


}